/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;

import java.util.Objects;

/**
 *
 * Class name: PriorityObjectDTO
 Description: 30/4/2014
 */
public class PriorityObjectDTO {
    
    //<editor-fold defaultstate="collapsed" desc=" Attributes">
    private String m_PriorityObjectID;
    private String m_NameOfObject;
    private int m_Rate;
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Properties">

    public String getPriorityObjectID() {
        return m_PriorityObjectID;
    }

    public void setPriorityObjectID(String strPriorityObjectID) {
        this.m_PriorityObjectID = strPriorityObjectID;
    }

    public String getNameOfObject() {
        return m_NameOfObject;
    }

    public void setNameOfObject(String strNameOfObject) {
        this.m_NameOfObject = strNameOfObject;
    }
  
    public int getRate() {
        return m_Rate;
    }

    public void setRate(int m_Rate) {
        this.m_Rate = m_Rate;
    }
   //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Methods">
    public PriorityObjectDTO(){
        
    }

     public PriorityObjectDTO(String strPriorityObjectID, String strNameOfObject){
        this.m_PriorityObjectID = strPriorityObjectID;
        this.m_NameOfObject = strNameOfObject;
    }
     
    public PriorityObjectDTO(String strPriorityObjectID, String strNameOfObject , int _rate){
        this.m_PriorityObjectID = strPriorityObjectID;
        this.m_NameOfObject = strNameOfObject;
        this.m_Rate = _rate;
    }
    
    @Override
    public String toString() {
        return m_NameOfObject;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 67 * hash + Objects.hashCode(this.m_PriorityObjectID);
        hash = 67 * hash + Objects.hashCode(this.m_NameOfObject);
        hash = 67 * hash + this.m_Rate;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PriorityObjectDTO other = (PriorityObjectDTO) obj;
        if (!Objects.equals(this.m_PriorityObjectID, other.m_PriorityObjectID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfObject, other.m_NameOfObject)) {
            return false;
        }
        if (this.m_Rate != other.m_Rate) {
            return false;
        }
        return true;
    }
    //</editor-fold>
}
